<%--
  Created by IntelliJ IDEA.
  User: GiantM
  Date: 2018/3/3
  Time: 19:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/">
    <link href="bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head>
<body>
    <div class="container">

        <div class="row">
            <div class="col-md-4 ">
                车系列表
            </div>
        </div>
        <div class="row">
            <div class="col-md-3 col-md-offset-8">
                <a href="series/preAdd">
                    <button type="button" class="btn btn-primary">添加车系</button>
                </a>

            </div>
        </div>
        <table class="table table-hover">
            <c:forEach var="bs" items="${basicSeries}">
                <tr>
                    <td align="center">${bs.seriesName}</td>
                    <td><img src="show/${bs.seriesPic}"></td>
                    <td>
                        <button type="button" class="btn btn-info">车系详情</button>
                        <a href="model/list/${bs.seriesId}">
                            <button type="button" class="btn btn-success">车型详情</button></td>
                        </a>

                </tr>
            </c:forEach>
        </table>
    </div>
</body>
</html>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="bootstrap/dist/js/bootstrap.js"></script>
<script>
    $('#myModal').on('shown.bs.modal', function () {
        $('#myInput').focus()
    })
</script>